P+ - King Dedede - Common Subroutine 0x19834

  1. if ((InternalConstantInt(ControlStickXAxisAbsolute) LessThan InternalConstantInt (0xc5c)))
    1. IfStatementAnd ((InternalConstantInt(ControlStickYAxisAbsolute) LessThan InternalConstantInt (0xc5d)))
    2. IntVariableSet { variable: RandomAccessInt (0x0), value: 264 }
    3. IntVariableSet { variable: RandomAccessInt (0x1), value: 255 }
  2. else
    1. if (StickDirectionPressed)
      1. if ((InternalConstantInt(ControlStickXAxisRelative) GreaterThanOrEqual scalar(0)))
        1. if ((InternalConstantInt (0x520b) LessThan InternalConstantInt (0x5a55)))
          1. IntVariableSet { variable: RandomAccessInt (0x0), value: 268 }
          2. IntVariableSet { variable: RandomAccessInt (0x1), value: 259 }
          3. BoolVariableSetTrue { variable: LongtermAccessBool (0x2a) }
          4. UnknownEvent { namespace: 0xc, code: 0x20, unk1: 0x0, arguments: [Value(1), Value(25)] }
        2. else
          1. IntVariableSet { variable: RandomAccessInt (0x0), value: 264 }
          2. IntVariableSet { variable: RandomAccessInt (0x1), value: 255 }
      2. else
        1. if ((InternalConstantInt (0x520b) LessThan InternalConstantInt (0x5a55)))
          1. IntVariableSet { variable: RandomAccessInt (0x0), value: 269 }
          2. IntVariableSet { variable: RandomAccessInt (0x1), value: 260 }
          3. BoolVariableSetTrue { variable: LongtermAccessBool (0x2a) }
          4. UnknownEvent { namespace: 0xc, code: 0x20, unk1: 0x0, arguments: [Value(1), Value(25)] }
        2. else
          1. IntVariableSet { variable: RandomAccessInt (0x0), value: 265 }
          2. IntVariableSet { variable: RandomAccessInt (0x1), value: 256 }
        3. FloatVariableSet { variable: RandomAccessFloat(EnableTurnWhenBelowZero), value: InternalConstantInt(CharacterDirectionOpposite) }
    2. else
      1. if ((InternalConstantInt(ControlStickYAxis) GreaterThanOrEqual scalar(0)))
        1. if ((InternalConstantInt(EffectOfAttack) LessThan InternalConstantInt (0x5a55)))
          1. IntVariableSet { variable: RandomAccessInt (0x0), value: 270 }
          2. IntVariableSet { variable: RandomAccessInt (0x1), value: 261 }
          3. BoolVariableSetTrue { variable: LongtermAccessBool (0x2a) }
          4. UnknownEvent { namespace: 0xc, code: 0x20, unk1: 0x0, arguments: [Value(1), Value(25)] }
        2. else
          1. IntVariableSet { variable: RandomAccessInt (0x0), value: 266 }
          2. IntVariableSet { variable: RandomAccessInt (0x1), value: 257 }
      2. else
        1. if ((InternalConstantInt(EffectOfAttack) LessThan InternalConstantInt (0x5a55)))
          1. IntVariableSet { variable: RandomAccessInt (0x0), value: 271 }
          2. IntVariableSet { variable: RandomAccessInt (0x1), value: 262 }
          3. BoolVariableSetTrue { variable: LongtermAccessBool (0x2a) }
          4. UnknownEvent { namespace: 0xc, code: 0x20, unk1: 0x0, arguments: [Value(1), Value(25)] }
        2. else
          1. IntVariableSet { variable: RandomAccessInt (0x0), value: 267 }
          2. IntVariableSet { variable: RandomAccessInt (0x1), value: 258 }